Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[web] Update dependencies (2023-11-14) #866

Merged
merged 34 commits into from
Nov 15, 2023
Merged

Conversation

dgdavid
Copy link
Contributor

@dgdavid dgdavid commented Nov 14, 2023

Another boring PR for keeping dependencies up-to-date via npm update and npm install @package/name@latest. No more --lockfile-version 2 because OBS already supports version 3 as we realized at #843

Please, note that this time we manage to get rid of some dependencies which were there because cockpit-starter-kit (see #127) but actually not needed anymore. In fact, they are no longer dependencies of starter-kit. Namely,

  • core-js
    • As a weird side effect, few tests were fixed to wait a bit for the expected content. Some black magic around Promise.resolve, I guess. Honestly, I didn't dig too further on it since waiting for the content is somehow expected.
  • stdio
  • sizzle

Apart from these, regenerator-runtime was dropped too because

It was added more than a year ago in the context of "Adapt React
components to the Starter Kit". But probably is no longer needed since
async functions, ES6 generators, and yield JavaScript operator have
broad support among major browsers.


Note for reviewers: Even though it looks like everything works as expected, please give a try on your development environment and, if possible, different browsers before approving it.

It was added because of cockpit-starter-kit[1] but they already dropped
it[2] because

> starter-kit does not use it directly, and none of our derived projects
> have it.

Thus, in principle it does not make sense to keep it as Agama
dependency.

As weird side-effect, a few test were fixed to "waitFor" the expeced
content.

[1] 55c75c3
[2] cockpit-project/starter-kit@67c1c06
It[1] was added more than a year ago[2] in the context of "Adapt React
components to the Starter Kit". But probably is no longer needed since
async functions, ES6 generators, and `yield` JavaScript operator have
broad support among major browsers.

[1] https://github.com/facebook/regenerator
[2] 55c75c3
It was there because cockpit-starter-kit, which dropped it a year
ago[1][2]

[1] cockpit-project/starter-kit#590
[2] cockpit-project/starter-kit@6e1fd84
Which came from cockpit-starter-kit. It was dropped there few months
ago, in Jun 2023[1]

[1] cockpit-project/starter-kit@1e46595
For waiting for the expected content
@coveralls
Copy link

coveralls commented Nov 15, 2023

Coverage Status

coverage: 75.454% (+0.01%) from 75.444%
when pulling e091e89 on update-dependencies-20231114
into ab65300 on master.

Remove a leftover it.only and make examples wait a bit for the expected
content.
@dgdavid dgdavid marked this pull request as ready for review November 15, 2023 08:10
@dgdavid dgdavid changed the title Update dependencies 20231114 [web] Update dependencies (2023-11-14) Nov 15, 2023
@dgdavid
Copy link
Contributor Author

dgdavid commented Nov 15, 2023

Now CI is failing, but I'm going ahead merging this because running

bundle exec yardoc --fail-on-warning

works locally. So, I'm assuming it is a temporary problem in CI.

@dgdavid dgdavid merged commit c0b134f into master Nov 15, 2023
5 of 6 checks passed
@dgdavid dgdavid deleted the update-dependencies-20231114 branch November 15, 2023 17:03
@dgdavid dgdavid mentioned this pull request Nov 21, 2023
@imobachgs imobachgs mentioned this pull request Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants